<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
<h:body>
	<p:dialog widgetVar="alterarFormaPgto" id="alterarFormaPgtoDialogId"
		height="350" width="600" modal="true" closable="true"
		draggable="false" resizable="false">
		<h:form id="alterarFormaPgtoForm" prependId="false">
		<p:growl id="growlAlterarFormaPgto" showDetail="false" life="3000" />
			<h:panelGrid columns="2">
				<h:outputText value="* Descrição: " />
				<p:inputText id="txtdescricao" value="#{formaPagamentoBean.formaPagamento.descricao}" style="width:250px" maxlength="100"
					required="true" label="Descrição: ">
					<p:focus for="txtdescricao" />
				</p:inputText>

				<p:commandButton value="Alterar" icon="ui-icon-plus"
					action="#{formaPagamentoBean.updateFormaPagamento}"
					update=":formaPgtoForm:formaPgtoTable, growlAlterarFormaPgto"
					oncomplete= "closeDialogIfSucess(xhr, status, args, alterarFormaPgto, 'alterarFormaPgtoDialogId')" />
				<p:commandButton value="Cancelar" icon="ui-icon-cancel"
					actionListener="#{formaPagamentoBean.resetFormaPagamento}"
					onclick="alterarFormaPgto.hide();" type="button" />
			</h:panelGrid>
		</h:form>
	</p:dialog>
</h:body>
</html>